/*
 * typ_def.hpp
 *
 *  Created on: 09.07.2013
 *      Author: to
 */
#include <iostream>
#include <valarray>
#include <string>
#include <cassert>


#ifndef TYP_DEF_H_
#define TYP_DEF_H_

using namespace std;

template <typename T>

T **AllocateDynamicArray( int iRows, int iCols)
{
      T **dynamicArray;
      dynamicArray = new T*[iRows]  ;
      for( int i = 0 ; i < iRows ; i++ )
      dynamicArray[i] = new T [iCols] ();

      return dynamicArray;
}

template <typename T>
void FreeDynamicArray(T** dArray)
{
      delete [] *dArray;
      delete [] dArray;
}



#endif //TYP_DEF_H__


